var data = [], volume = [];
for (i = 0; i <= 20; i++) {
    var time = Date.UTC(2011, 7, 20, i, 30);
    data.push([time,i]);
    volume.push([time, 1000]); // volume
}

var INTRADAY = {
    chart: {
        renderTo: 'container'
    },

    xAxis: {
        type: 'datetime',
        maxZoom: 3600000 // one hour
    },
    yAxis: [
        {
            title: {
                text: 'Closing'
            },
            height: 200,
            lineWidth: 2
        },
        {
            title: {
                text: 'Volume'
            },
            top: 300,
            height: 100,
            offset: 0,
            lineWidth: 2
        }
    ],

    rangeSelector: {
        buttons: [
            {
                type: 'minute',
                count: 15,
                text: '15m'
            },
            {
                type: 'hour',
                count: 1,
                text: '1h'
            },
            {
                type: 'all',
                count: 1,
                text: 'All'
            }
        ],
        selected: 1,
        inputEnabled: false
    },

    series: [
        {
            name: 'ORCL',
            data: data
        },
        {
            type: 'column',
            name: 'Volume',
            data: volume,
            yAxis: 1
        }
    ]
};

new Highcharts.StockChart(INTRADAY);
